home *** CD-ROM | disk | FTP | other *** search
/ Aminet 33 / Aminet 33 - October 1999.iso / Aminet / util / batch / boot-startup.lha / boot-startup_v1 Readme < prev    next >
Encoding:
Text File  |  1999-08-01  |  3.8 KB  |  83 lines

  1. Short:    Programmable boot menu script
  2. Author:   craig roebuck
  3. Uploader: craig.roebuck@ukonline.co.uk
  4. Type:     util/batch
  5.  
  6. This boot-startup is a user definable script which I created to allow me
  7. to run certain programmes (eg. T0, PGA & Golf) from startup without having to start without
  8. startup-sequence and typing in lines of commands into the cli.
  9. This way some other programmes can be mad to run that will not run after the
  10. workbench has loaded.
  11. The readme file inside the lha file has all the instruction you should need
  12. to understand how it works and how to change it for your own usage.
  13. Have fun, Live long and Prosper.
  14.  
  15.  
  16. Ever found that some programmes, especially games won't run from your 
  17. harddrive once Workbench has loaded up. Well I have and there is nothing 
  18. more irritating than to have to reboot your Amiga and start-up without 
  19. the startup-sequence so you can type in a bunch of commands to get a 
  20. game working.
  21.  
  22. I decided to write a small program based on the WB3.x built in AmigaDos 
  23. RequestChoice to get around this problem. Below is a simple explanation of how the script works.
  24. The whole program is a simple Amiga Script just like your start-up-
  25. sequence.
  26. The script has been tested on an A1200 32MB fast ram, 820MD IDE HD, 680MB HD,
  27. 420MB HD, A Delta CD-R/RW IDE and blizzard 1260 accelerator.
  28. Software: OS 3.1, KS3.1, IDEFIX + 4*Buffered I/F.
  29.  
  30. lines 1-3 of the script constructs a standard header.
  31.  
  32. line 4 displays the requester inquiring the user for a choice of start-
  33. up. This line sets up rq{$$} as a variable which will hold the value of 
  34. the users input. The text held in the first set of quotes is for the 
  35. requester header. the text held in the second set of quotes goes into 
  36. the requester window, The *n*n starts a new line in the requester window 
  37. for the text that follows it. in the same set of quotes.
  38.  
  39. All text held in the following quotes is for the requester buttons. 
  40. Each button is identified by a number, 1 being the first, 2 the second 
  41. and so on. 0 is the last button.
  42.  
  43. Line 5-7 asks if the value rq{$$} EQuals "0" (The last button) then skip 
  44. to the part of the script where a "lab" statement is followed by "out", 
  45. "endif" terminates the "if"
  46.  
  47. lines 8-10 is similar to lines 5-7 but asks if button 1 was chosen 
  48. instead and if this is true to skip to "lab ban", the string of 
  49. characters that follow  skip and lab  could be anything of your choosing 
  50. so long as they match, other wise the script won't know where to go.
  51.  
  52. lines 11-19 do the same as 5-7 and 8-10 but ask if buttons 2,3 and 4 
  53. have been clicked on respectively.
  54.  
  55. Line 20,26,34,40 and 44 are all links for their respective skip 
  56. commands.
  57.  
  58. After a lab statement is followed by the lines that you would normally 
  59. enter for your program of choice when booting up without the startup-
  60. sequence.
  61.  
  62. Lines 6,17,25 and 31 all skip to "lab out" 
  63. "unsetenv rq{$$}" clears the variable rq{$$}.
  64. "c:setpatch QUIET" replaces the setpatch command from the startup-
  65. sequence before returning to it. setpatch should be removed from the 
  66. startup-sequence or you should precede it with a semi-colon so that it 
  67. is ignored. this should be done because I have found that some software 
  68. does not like what setpatch does to my system, maybe it's just because 
  69. of my Blizzard 060?. N.B T0 needs setpatch so it is executed just before the game.
  70. If setpatch is not run before T0 your AGA chip set shows as ECS.
  71.  
  72. Inyway at the end of this script execution of the startup-sequence is
  73. continued and workbench is loaded as usual. feel free to alter the 
  74. script to your own needs.
  75.  
  76. I have included copys of my boot-startup and startup-sequence files for your reference.
  77. Once you have created your own boot-startup (using a text editor like ed or golded)
  78. save it to your s: drawer.
  79.  
  80. Just remember to keep a safe copy of your original startup-sequence 
  81. incase you do anything you may want to undo in the future.
  82.  
  83.